package com.itheima.Demo1Scanner;

import java.util.Scanner;

public class Demo10 {
    public static void main(String[] args) {
        //1.键盘录入一个字符串,用Scanner 实现
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入:");
        String s = sc.next();

        //2.对敏感词进行过过滤
        String[] arr = {"TMD","sb","SB"};
       /* String s1 = s.replace("TMD","***");
        String s2 = s1.replace("SB","**");*/
        //思考:如果我还想过滤"SB","NB","BT'怎么办?

        //3.输出结果
       // System.out.println(s1);
    }
}
